/****************************************************
          File Name:10-7_imply.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Tue 23 Dec 2014 04:50:05 PM CST
*****************************************************/

#include"10-7.h"

/*
Plorg::Plorg(char name[],  int fci)
{
    for(int i=0; i<35; i++) fullname[i] = '\0';
    for(int i = 0; name[i] != '\0'; i++)
        fullname[i] = name[i];
    ci = fci;
}
*/

Plorg::Plorg(const std::string & name, int fci)
{
    fullname = name;
    ci = fci;
}

void Plorg::modify()
{
    std::cout << "Enter new CI: ";
    std::cin >> ci;
}

Plorg Plorg::generate()
{
    Plorg tmp("Plorga", 50);
    return tmp;
}

void Plorg::show() const
{
    std::cout << fullname << "\n";
    std::cout << ci << "\n";
}
